home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / Solitaire / Sources / Pyramid / Pyramid.h < prev    next >
Text File  |  1994-01-12  |  2KB  |  82 lines

  1. /* indent:4  tabsize:8  font:fixed-width */
  2.  
  3. /*---------------------------------------------------------------------------
  4. |----------------------------------------------------------------------------
  5. |
  6. |    Pyramid:GameModule
  7. |
  8. |    Pyramid solitaire module.
  9. |
  10. |    CREDITS
  11. |
  12. |    Gary Ritchie<gary@uaneuro.uah.ualberta.ca>
  13. |        -- design, implementation, documentation
  14. |
  15. |----------------------------------------------------------------------------
  16. \---------------------------------------------------------------------------*/
  17.  
  18.  
  19. #import <appkit/appkit.h>
  20. #import "../Solitaire/GameModule.h"
  21.  
  22. @interface Pyramid:GameModule
  23. {
  24.     id gameDelegate;
  25.     id wasteDelegate;
  26.     id stockDelegate;
  27.     id discardDelegate;
  28.     
  29.     id stockCardPileView;    /* stock pile */
  30.     id wasteCardPileView;    /* waste pile */
  31.     id discardCardPileViewL;    /* left pile holding matching pairs */
  32.     id discardCardPileViewR;    /* right pile holding matching pairs */
  33.     
  34.     id gamePileGroupView;    /* a group of the following 28 pileViews */    
  35.     id gamePileView1;        /* pyramid piles, starting at the top point */
  36.     id gamePileView2;
  37.     id gamePileView3;
  38.     id gamePileView4;
  39.     id gamePileView5;
  40.     id gamePileView6;
  41.     id gamePileView7;
  42.     id gamePileView8;
  43.     id gamePileView9;
  44.     id gamePileView10;
  45.     id gamePileView11;
  46.     id gamePileView12;
  47.     id gamePileView13;
  48.     id gamePileView14;
  49.     id gamePileView15;
  50.     id gamePileView16;
  51.     id gamePileView17;
  52.     id gamePileView18;
  53.     id gamePileView19;
  54.     id gamePileView20;
  55.     id gamePileView21;
  56.     id gamePileView22;
  57.     id gamePileView23;
  58.     id gamePileView24;
  59.     id gamePileView25;
  60.     id gamePileView26;
  61.     id gamePileView27;
  62.     id gamePileView28;
  63.  
  64.     id prevDeck;        // for implementing "restart game" option
  65.     id gameCardPiles[28];       // array'd references to above 28 views
  66.  
  67.     int dealCount;              // number of passes through the stock pile
  68.                                 // "1" indicates we are on the first pass
  69.     BOOL gameInProgress;        // TRUE unless user has won/lost game
  70.     BOOL pyramidEmpty;
  71. }
  72.  
  73.  
  74. - setupGame:(BOOL)redeal;
  75.  
  76. - (int)dealCount;
  77. - setDealCount:(int)count;
  78. - incDealCount;
  79. - determineScore;
  80.  
  81. @end
  82.